/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ufscar.compiladores.ast;

/**
 *
 * @author takeshi
 */
abstract public class Type {

    private String name;
    public static Type booleanType = new BooleanType();
    public static Type integerType = new IntegerType();
    public static Type undefinedType = new UndefinedType();

    abstract public String getCname();

    public Type(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        return  name;
    }
    
}
